package com.assignwork.vo;

import com.assignwork.util.BigDecimalSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @ClassName VoyageBillCabinSimpleVO
 * @Description 船舶信息简单信息VO
 * @Author dujianyu
 * @Date 2023/8/25 14:18
 */
@Data
public class VoyageBillCabinSimpleVO {

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "主键id")
    private Long id;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "票元数据ID")
    private Long sourceId;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "航次ID")
    private Long voyageId;

    @ApiModelProperty(value = "舱key")
    private String cabinKey;

    @ApiModelProperty(value = "舱名")
    private String cabinName;

    @ApiModelProperty(value = "货件")
    private Integer cargoPiece;

    @JsonSerialize(using = BigDecimalSerializer.class)
    @ApiModelProperty(value = "货吨")
    private BigDecimal cargoTon;

    @JsonSerialize(using = BigDecimalSerializer.class)
    @ApiModelProperty(value = "作业吨")
    private BigDecimal workTon;

    @JsonSerialize(using = BigDecimalSerializer.class)
    @ApiModelProperty(value = "甩吨")
    private BigDecimal remainder;
}
